from django.urls import path, include, re_path
from rest_framework import routers

from apps.base_app.views import (
    SeniorListViewSet,
    StudentsListViewSet,
    WorkListViewSet,
    WorkManageViewSet,
    InfoSender,
    LoginAndRegister,
)

lr_router = routers.SimpleRouter()
lr_router.register(r'', LoginAndRegister, basename='')

info_router = routers.SimpleRouter()
info_router.register(r'', InfoSender, basename='')

senior_router = routers.SimpleRouter()
senior_router.register(r'senior', SeniorListViewSet, basename='senior')

student_router = routers.SimpleRouter()
student_router.register(r'student', StudentsListViewSet, basename='student')

work_list_router = routers.SimpleRouter()
work_list_router.register(r'work_list', WorkListViewSet, basename='work_list')

work_manage_router = routers.SimpleRouter()
work_manage_router.register(r'work_manage', WorkManageViewSet, basename='work_manage')

urlpatterns = [
    path(r'', include(senior_router.urls)),
    path(r'', include(student_router.urls)),
    path(r'', include(work_manage_router.urls)),
    path(r'', include(work_list_router.urls)),
    path(r'', include(info_router.urls)),
    path(r'', include(lr_router.urls)),
]
